Skip to contentSkip to conversation

How to Disable Fixed Host Register Usage in QEMU TCG version

Qemu-devel Prasad 2 participants 2 messages Apr 17, 2009

lore
Share & tools
lore

Prasad

author
#0 lore raw

Hi,

I am trying to disable the use of dedicated host registers for variables such as 'env' 'T0' and 'T1'. I have tried on 0.9.1 version of QEMU, when I remove register keyword and asm(AREG0) in the below line from exec.h for env, T0, and T1 everything works fine.
register  CPUARMState *env asm(AREG0)

But with the TCG version things does not seem to work, Can someone guide me, how can I do the same with TCG version. Waiting for your reply...

Thanks and Regards,
Prasad Shetty B

http://shettyprasad.blogspot.com
"Idleness like kisses must be stolen to be sweet"

#1 lore raw
Quoted 11 lines · Prasad

Hi,

I am trying to disable the use of dedicated host registers for variables such as 'env' 'T0' and 'T1'.
I have tried on 0.9.1 version of QEMU, when I remove register keyword and asm(AREG0) in the below line from exec.h
for env, T0, and T1 everything works fine.
register CPUARMState *env asm(AREG0)

Quoted 3 lines

But with the TCG version things does not seem to work, Can someone guide me, how can I do the same with TCG version.
Waiting for your reply...

This is not possible anymore, at least without heavy modifications to tcg/hostarch/tcg-target.c (qemu_ld, qemu_st code) and target-arch/translate.c (creates TCG variables which use AREG0 as base register).